package org.elsfs.cloud.common.mybatis.ext.sql.support.condition;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 比较操作符
 *
 */
@Getter
@RequiredArgsConstructor
public enum CompareOperator {

    /**
     * 等于
     */
    EQUAL(" = "),
    /**
     * 不等于
     */
    NOT_EQUAL(" <> "),
    /**
     * 小于
     */
    LESS_THAN(" < "),
    /**
     * 小于等于
     */
    LESS_THAN_OR_EQUAL(" <= "),
    /**
     * 大于
     */
    GREATER_THAN(" > "),
    /**
     * 大于等于
     */
    GREATER_THAN_OR_EQUAL(" >= ");

    /**
     * 操作符
     */
    private final String operator;
}
